'use strict';
module.exports = app => {
  const { STRING, CHAR } = app.Sequelize; // 获取数据类型
  const Script = app.modelmysql.define('script',
    {
        id: {
            type: CHAR(27),
            primaryKey: true
        },  
        name:{type: STRING},
        script:{type: STRING(10000)},
        MountPoint:{type: STRING},
        version:{type: STRING},
        tid:{type: CHAR(27) }
    }
  );
  Script.associate = function() {
    app.modelmysql.Script.belongsTo(app.modelmysql.OltType);
  };
  return Script;
};
